﻿using UnityEngine;
using System;
using System.Collections;

namespace Hont.HyperWigglePackage.Editor
{
    public class PreviewVO
    {
        public Mesh PreviewModel;
        public Material CubemapMaterial;
        public string[] OtherSkyboxsArray;
        public string[] OtherModelsArray;

        public bool IsInvalidWiggle;
        public Vector3 InvalidPositon;
        public Vector3 InvalidRotation;
        public bool IsPlaying;
        public float FPS;

        public Action<Camera, Vector3, Quaternion> OnPreviewCameraTransformUpdateCB;
        public Action<Camera> OnPreviewCameraWiggleUpdateCB;
        public Action<float> OnChangedFPSCB;
        /// <summary>
        /// Arg1 - track index, Arg2 - value
        /// </summary>
        public Action<int, float> OnChangedValueCB;

        public Action<bool> OnPlayBtnClickedCB;
        public Action OnToBeginFrameBtnClickedCB;
        public Action OnToEndFrameBtnClickedCB;
        public Action OnToNextFrameBtnClickedCB;
        public Action OnToPreviousFrameBtnClickedCB;

        public Action<string> OnChangeCubemapCB;
        public Action<string> OnChangePreviewModelCB;

        public Action<TrackVO> OnTrackClearCB;
    }
}
